<?php
include_once("../Utility/WebSession.php");
include_once("../Entities/User.php");
if(isset($bodyEvents) == false)
	$bodyEvents = "";
if(isset($pageIndex) == false)
	$pageIndex = 1;
$strHeader = "";
switch($pageIndex)
{
	case 1:
	{
		$strHeader = "<input type='hidden' id='currentButton' value='../images/1-b1.gif' />" .
					"<a href='index.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b1.gif' title='../images/1-b1.gif' /></a>" .
					"<a href='MainTest.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b2.gif' title='../images/1-b2.gif' /></a>" .
					"<a href='TestManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b3.gif' title='../images/1-b3.gif' /></a>" .
					"<a href='ParagraphManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b4.gif' title='../images/1-b4.gif' /></a>" .
					"<a href='QuestionManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b5.gif' title='../images/1-b5.gif' /></a>" .
					"<a href='FeedbackManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b6.gif' title='../images/1-b6.gif' /></a>";
		break;
					
	}
	case 2:
	{
		$strHeader = "<input type='hidden' id='currentButton' value='../images/2-b2.gif' />" .
			"<a href='index.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/2-b1.gif' title='../images/2-b1.gif' /></a>" .
			"<a href='MainTest.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/2-b2.gif' title='../images/2-b2.gif' /></a>" .
			"<a href='TestManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b3.gif' title='../images/1-b3.gif' /></a>" .
			"<a href='ParagraphManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b4.gif' title='../images/1-b4.gif' /></a>" .
			"<a href='QuestionManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b5.gif' title='../images/1-b5.gif' /></a>" .
			"<a href='FeedbackManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b6.gif' title='../images/1-b6.gif' /></a>";
		break;
	}
	case 3:
	{
		$strHeader = "<input type='hidden' id='currentButton' value='../images/3-b3.gif' />" .
			"<a href='index.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/2-b1.gif' title='../images/2-b1.gif' /></a>" .
			"<a href='MainTest.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b2.gif' title='../images/1-b2.gif' /></a>" .
			"<a href='TestManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/3-b3.gif' title='../images/3-b3.gif' /></a>" .
			"<a href='ParagraphManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b4.gif' title='../images/1-b4.gif' /></a>" .
			"<a href='QuestionManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b5.gif' title='../images/1-b5.gif' /></a>" .
			"<a href='FeedbackManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b6.gif' title='../images/1-b6.gif' /></a>";
		break;
	}
	case 4:
	{
		$strHeader = "<input type='hidden' id='currentButton' value='../images/4-b4.gif' />" .
			"<a href='index.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/2-b1.gif' title='../images/2-b1.gif' /></a>" .
			"<a href='MainTest.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b2.gif' title='../images/1-b2.gif' /></a>" .
			"<a href='TestManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b3.gif' title='../images/1-b3.gif' /></a>" .
			"<a href='ParagraphManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/4-b4.gif' title='../images/4-b4.gif' /></a>" .
			"<a href='QuestionManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b5.gif' title='../images/1-b5.gif' /></a>" .
			"<a href='FeedbackManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b6.gif' title='../images/1-b6.gif' /></a>";
		break;
	}
	case 5:
	{
		$strHeader = "<input type='hidden' id='currentButton' value='../images/5-b5.gif' />" .
			"<a href='index.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/2-b1.gif' title='../images/2-b1.gif' /></a>" .
			"<a href='MainTest.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b2.gif' title='../images/1-b2.gif' /></a>" .
			"<a href='TestManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b3.gif' title='../images/1-b3.gif' /></a>" .
			"<a href='ParagraphManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b4.gif' title='../images/1-b4.gif' /></a>" .
			"<a href='QuestionManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/5-b5.gif' title='../images/5-b5.gif' /></a>" .
			"<a href='FeedbackManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b6.gif' title='../images/1-b6.gif' /></a>";
		break;
	}
	case 6:
	{
		$strHeader = "<input type='hidden' id='currentButton' value='../images/6-b6.gif' />" .
			"<a href='index.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/2-b1.gif' title='../images/2-b1.gif' /></a>" .
			"<a href='MainTest.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b2.gif' title='../images/1-b2.gif' /></a>" .
			"<a href='TestManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b3.gif' title='../images/1-b3.gif' /></a>" .
			"<a href='ParagraphManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b4.gif' title='../images/1-b4.gif' /></a>" .
			"<a href='QuestionManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/1-b5.gif' title='../images/1-b5.gif' /></a>" .
			"<a href='FeedbackManagement.php'><img onmouseover='mouseHover(this)' onmouseout='mouseOut(this)' src='../images/6-b6.gif' title='../images/6-b6.gif' /></a>";
		break;
	}
	
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>CSDL Web - EFU1</title>
	<link href="../css/layout.css" rel="stylesheet" type="text/css" />
	<link href="../css/table.css" rel="stylesheet" type="text/css" />
	<link href="../css/form.css" rel="stylesheet" type="text/css" />
	<link href="../css/layout1.css" rel="stylesheet" type="text/css" />
	<link href="../css/datePicker.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../js/jquery-1.2.6.js"></script>
	<script type="text/javascript" src="../js/date.js"></script>
	<script type="text/javascript" src="../js/jquery.datePicker.js"></script>
	<script type="text/javascript" src="../js/blockUI.js"></script>
	<script type="text/javascript" src="../js/control.js"></script>
	<script type="text/javascript" src="../js/control1.js"></script>
	<script type="text/javascript" src="../js/usercontrol.js"></script>
</head>

<body id="index" <?php echo $bodyEvents; ?>>
	<div class="top_bg"> 
		<div class="bot_bg">
			<div id="main">
				<div id="header">
					<div class="flash"></div>
					<div id="header1">
					<?php 
echo $strHeader;
					?>
					</div>
					<div id="header2">
						<br/><br/>
			  		</div>
<?php 
if(WebSession::CurrentUserNoReturn() != null)
{
	echo "<a class='signout' onclick=\"window.location='index.php?signout=1'\">Signout (" . WebSession::CurrentUserNoReturn()->Username . ")</a>";
}
else
{
	echo "<a class='signout' onclick=\"window.location='index.php?'\">Sign In</a><a class='register' onclick=\"window.location='register.php?'\">Register</a>";
}
?>
				</div>
				<!--header end-->
				<div id="middle">
					<div class="content">
<?php
echo $mainContent;
?>
					</div>
				</div>
				<!--footer -->
				<div id="footer">
					<div class="indent">
						<span><a href="index.php">Home page</a> &nbsp; | &nbsp; <a href="Maintest.php">User Test</a> &nbsp; | &nbsp; <a href="TestManagement.php">Test Manager</a> &nbsp; | &nbsp; <a href="ParagraphManagement.php">Paragraph Manager</a> &nbsp; | &nbsp; &nbsp;<a href="QuestionManagement.php">Question Manager</a> &nbsp; | &nbsp; &nbsp;<a href="FeedbackManagement.php">Feedback Manager</a></span><br />
						English For Us &copy; 2008 &nbsp;
				  	</div>
				</div>
				<!--footer end-->
			</div>
		</div>
	</div>
	<script type="text/javascript">
<?php
echo $scriptContent;
?>
	</script>
</body>

</html>